﻿using Devonline.AspNetCore.OData;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Devonline.Identity.Admin.Controllers;

/// <summary>
/// 组织部门管理
/// </summary>    
[Route("api/[controller]")]
[ApiController]
[SecurityHeaders]
[Authorize(Roles = GROUP_MAINTAINERS)]
public class GroupsController : ODataModelServiceController<IdentityDbContext, Group, GroupViewModel>
{
    public GroupsController(IDataWithAttachmentService<IdentityDbContext, Group> dataService) : base(dataService) { }
}